﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="Themdiadiemgiamgia.aspx.cs" Inherits="Admin_Diadiemgiamgia_Themdiadiemgiamgia" %>

<%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style4
        {
            width: 100%;
        }
        .style5
        {
            width: 85px;
        }
        .style6
        {
            width: 794px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Label ID="Label1" runat="server" ForeColor="#FF3300" 
            Text="Thêm Địa Điểm Giảm Giá" Font-Bold="True" Font-Size="X-Large" 
            style="text-align: center"></asp:Label>
    <br />
    <table class="style4">
        <tr>
            <td class="style5">
                Tiêu đề:&nbsp;&nbsp;&nbsp;</td>
            <td class="style6">
    <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="TextBox1" ErrorMessage="*" ForeColor="Red" 
                    ValidationGroup="1" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style5">
                Ngày bắt đầu:&nbsp;&nbsp; 
            </td>
            <td class="style6">
                <asp:Calendar ID="Calendar1" runat="server" BackColor="#FFFFCC" 
        BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
        Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="119px" 
        ShowGridLines="True" Width="177px">
        <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
        <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
        <OtherMonthDayStyle ForeColor="#CC9966" />
        <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
        <SelectorStyle BackColor="#FFCC66" />
        <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
            ForeColor="#FFFFCC" />
        <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
    </asp:Calendar>
   

            </td>
        </tr>
        <tr>
            <td class="style5">
    Ngày kết thúc:&nbsp;&nbsp; 
            </td>
            <td class="style6">
                <asp:Calendar ID="Calendar2" runat="server" BackColor="#FFFFCC" 
        BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
        Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="170px" 
        ShowGridLines="True" Width="177px"  >
        <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
        <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
        <OtherMonthDayStyle ForeColor="#CC9966" />
        <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
        <SelectorStyle BackColor="#FFCC66" />
        <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
            ForeColor="#FFFFCC" />
        <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
    </asp:Calendar>
   
                <asp:Label ID="Label2" runat="server" ForeColor="Red" 
                    Text="Ngày kết thúc không được nhỏ hơn ngày bắt đầu" Visible="False"></asp:Label>
   
            </td>
        </tr>
        <tr>
            <td class="style5">
                Phần trăm giảm:&nbsp;&nbsp;</td>
            <td class="style6">
    <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="TextBox4" ErrorMessage="*" ForeColor="Red" 
                    ValidationGroup="1" SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="TextBox4" ErrorMessage="Bạn phải nhập số" ForeColor="Red" 
                    SetFocusOnError="True" ValidationExpression="\d*" ValidationGroup="1"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style5">
                Hình:&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td class="style6">
    <asp:FileUpload ID="FileUpload1" runat="server" Width="217px" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="FileUpload1" ErrorMessage="*" ForeColor="Red" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style5">
    Miêu tả:&nbsp;&nbsp;
            </td>
            <td class="style6">
                <CE:Editor ID="Editor1" runat="server">
                </CE:Editor>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="Editor1" ErrorMessage="*" ForeColor="Red" 
                    ValidationGroup="1"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td class="style5">
    <br />Công ty:&nbsp;&nbsp;</td>
            <td class="style6">
    <br />
    <asp:DropDownList ID="DropDownList1" runat="server" 
        DataSourceID="LinqDataSource1" DataTextField="Ten_cty" 
        DataValueField="Id_cty" AutoPostBack="True">
    </asp:DropDownList>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="DLL.luuliDataContext" EntityTypeName="" TableName="congties">
    </asp:LinqDataSource>
            </td>
        </tr>
        <tr>
            <td class="style5">
                &nbsp;</td>
            <td class="style6">
&nbsp;<asp:Button ID="Button12" runat="server" onclick="Button12_Click" 
        Text="Thêm" ValidationGroup="1" />
    &nbsp;&nbsp;
    <asp:Button ID="Button11" runat="server" Text="Xóa" />
&nbsp;&nbsp;
            </td>
        </tr>
        <tr>
            <td class="style5">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
        </tr>
    </table>
&nbsp;<br />
    <br />
    <br />


    </asp:Content>

